package com.tzbank.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Table;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.io.Serializable;

/**
 * 工单实体对象
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Entity(name = "mb_order")
@Table(appliesTo = "mb_order", comment = "订单表")
public class Order extends BaseModel implements Serializable {

	private static final long serialVersionUID = 1838073686760891723L;

	/**
	 * 工单ID
	 */
	@ApiModelProperty(value = "工单ID")
	@Column(name = "order_id", columnDefinition = "varchar(50)  NOT NULL COMMENT '工单ID'")
	private String orderId;

	/**
	 * 工单名称
	 */
	@ApiModelProperty(value = "工单名称")
	@Column(name = "order_name", columnDefinition = "varchar(50)  NOT NULL COMMENT '工单名称'")
	private String orderName;

	/**
	 * 工单描述
	 */
	@ApiModelProperty(value = "工单描述")
	@Column(name = "order_desc", columnDefinition = "varchar(100)  DEFAULT NULL COMMENT '工单描述'")
	private String orderDesc;

	/**
	 * 路径
	 */
	@ApiModelProperty(value = "路径")
	@Column(name = "path", columnDefinition = "varchar(200)  DEFAULT NULL COMMENT '路径'")
	private String path;

	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注")
	@Column(name = "remark", columnDefinition = "varchar(200)  DEFAULT NULL COMMENT '备注'")
	private String remark;

}
